Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce deferrable service overrides #60

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

ollieread
Copy link
Member

This PR introduces the DeferrableServiceOverride contract and refactors the way that service overrides work.

Deferrable service overrides will only do the following if the service they rely on has been resolved:

  • Instantiate
  • Boot
  • Setup

They also won't perform the clean-up action UNLESS they were previously set up.

This addresses #59

@ollieread ollieread added type: refactor Refactoring of code status: accepted The issue has been accepted/acknowledged and is being actioned or will be labels Nov 17, 2024
@ollieread ollieread added this to the V1 Release milestone Nov 17, 2024
@ollieread ollieread self-assigned this Nov 17, 2024
Copy link

codecov bot commented Nov 17, 2024

Codecov Report

Attention: Patch coverage is 77.17391% with 21 lines in your changes missing coverage. Please review.

Project coverage is 85.56%. Comparing base (2abfc25) to head (3899bfe).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/Concerns/HandlesServiceOverrides.php 73.41% 21 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #60      +/-   ##
============================================
- Coverage     86.80%   85.56%   -1.24%     
- Complexity      379      407      +28     
============================================
  Files            57       58       +1     
  Lines          1091     1164      +73     
============================================
+ Hits            947      996      +49     
- Misses          144      168      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ollieread ollieread merged commit 2f67154 into main Nov 18, 2024
2 of 4 checks passed
@ollieread ollieread deleted the feat/deferred-service-overrides branch November 18, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted The issue has been accepted/acknowledged and is being actioned or will be type: refactor Refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant